package com.example.blog.service;

//import com.example.blog.dto.CommentDTO;
import com.example.blog.modules.article.dto.CommentDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CommentService {
    CommentDTO createComment(CommentDTO commentDTO);
    CommentDTO updateComment(Long id, CommentDTO commentDTO);
    void deleteComment(Long id);
    CommentDTO getCommentById(Long id);
    Page<CommentDTO> getCommentsByArticle(Long articleId, Pageable pageable);
    List<CommentDTO> getRootComments(Long articleId);
    List<CommentDTO> getChildComments(Long parentId);
} 